﻿@using Common;
@using Web.helper;
@using (Ajax.BeginForm("", new { }, new AjaxOptions() { HttpMethod = "Post", OnSuccess = "tips(data)", OnBegin = "ValidateLog" }))
{
    <div class="modal fade bs-example-modal-sm" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" style="z-index:1000">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">新增</h4>
                </div>
                <div class="modal-body">
                    <input type="hidden" name="id" class="form-control" id="id">
                    <div class="form-group">
                        <label for="txt_departmentname">上级编号</label>
                        @Html.Raw(Html.select_new_type())
                    </div>
                    <div class="form-group">
                        <label for="txt_departmentname">标题</label>
                        <input type="text" name="txt_title" class="form-control" id="txt_title" placeholder="标题(必填)" required="">
                    </div>
                    <div class="form-group">
                        <label for="txt_parentdepartment">排序</label>
                        <input type="text" name="txt_sort_id" class="form-control" id="txt_sort_id" placeholder="数字越小越靠前">
                    </div>
                    <div class="form-group">
                        <label for="txt_parentdepartment">SEO标题</label>
                        <input type="text" name="txt_seo_title" class="form-control" id="txt_seo_title">
                    </div>
                    <div class="form-group">
                        <label for="txt_departmentname">SEO关键字</label>
                        <textarea class="form-control" rows="3" id="txt_seo_keywords" name="txt_seo_keywords"></textarea>
                    </div>
                    <div class="form-group">
                        <label for="txt_parentdepartment">SEO描述</label>
                        <textarea class="form-control" rows="3" id="txt_seo_description" name="txt_seo_description"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span>关闭</button>
                    <button class="btn btn-primary block full-width m-b" id="btn_submit" onclick="onck()"><span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>保存</button>
                </div>
            </div>
        </div>
    </div>
}